//
//  ActivityView.h
//  MobileOA
//
//  Created by Lawrence Zhang on 12-6-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@protocol cancelRequestDelegate <NSObject>
- (void)cancelRequest;
@end

@interface ActivityView : NSObject
{
    UIActivityIndicatorView     *activity;
    UILabel                     *textLabel;
    UIView                      *bezelView;
    UIView                      *transparent;
    BOOL                        isShowing;
    UIButton                    *cancelButton;
}

@property(nonatomic,assign) id<cancelRequestDelegate>delegate;
@property(nonatomic,assign) NSInteger showcanclebtn; //判断是否显示取消按钮

+ (ActivityView *)shareActivityView;

- (void)showWithString:(NSString *)title;

- (void)dismiss;

- (void)setText:(NSString *)str;
@end
